/*******************************************************************************
 * This file is part of blueprint4j www.blueprint4j.org.
 * 
 *     blueprint4j is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU Lesser General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     blueprint4j is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU Lesser General Public License for more details.
 * 
 *     You should have received a copy of the GNU Lesser General Public License
 *     along with blueprint4j. If not, see <http://www.gnu.org/licenses/>.
 ******************************************************************************/
package blueprint4j.db;

import blueprint4j.Constants;


public class FieldGroupContactHome extends FieldGroup {
	public FieldGroup contact_home;
	public FieldText street_address;
	public FieldString city;
	public FieldString province;
	public FieldString zip_code;
	public FieldStringCountry country;
	public FieldString web_page;
	public FieldString phone;
	public FieldString fax;
	public FieldString mobile;                  

	public FieldGroupContactHome(String name,String prefix,Entity entity) {
		super(name,Constants.ICON_BASE+"actions/identity.png",entity);
		if (prefix==null){
			prefix="";
		}
		if (prefix.length()>0){
			prefix=prefix+"_";
		}
		street_address = new FieldText(prefix+"contact_home_street_address", 0, "Street Address", entity);
		city = new FieldString(prefix+"contact_home_city", 0, "City", 50,entity);
		province = new FieldString(prefix+"contact_home_province", 0, "State/Province", 50,entity);
		zip_code = new FieldString(prefix+"contact_home_zipcode", 0, "Zip Code", 10,entity);
		country = new FieldStringCountry(prefix+"contact_home_country", 0, "Country",entity);
		web_page = new FieldString(prefix+"contact_home_webpage", 0, "Web Page", 200,entity);
		phone = new FieldString(prefix+"contact_home_phone", 0, "Phone", 15,entity);
		fax = new FieldString(prefix+"contact_home_fax", 0, "Fax", 15,entity);
		mobile = new FieldString(prefix+"contact_home_mobile", 0, "Mobile",15, entity);
	}
}

